package com.addplus.townmall.server.api.mapper.town;

import com.addplus.townmall.server.api.model.town.OrderPay;
import com.addplus.townmall.server.api.utils.BaseAddMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 商城订单支付表 Mapper 接口
 * </p>
 *
 * @author zhangjiehang
 * @since 2018-08-27
 */
public interface OrderPayMapper extends BaseAddMapper<OrderPay> {


    @Select(" select * from order_pay a WHERE a.type=#{type} and order_id= #{orderid}")
    OrderPay getOrderPay(@Param("type") Integer type, @Param("orderid") Integer orderid);
}
